package model;

import xl.Environment;
import expr.Expr;

public class ExprCell implements Cell {
	private Expr expr;
	
	ExprCell(Expr expr) {
		this.expr = expr;
	}
	
	public double value(Environment env) {
		return expr.value(env);
	}
	
	public String parse(Environment env){
		return new Double(value(env)).toString();
	}
	
	public String toString() {
		return expr.toString();
	}
}
